package com.wyfx.blockchain.common.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description
 * @Auther: wsm
 * @Date: 2020/9/4 20:34
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultResponse<T> {
    private Integer code;
    private String message;
    private T data;

    public ResultResponse(Integer code) {
        this.code = code;
    }


    public ResultResponse(Integer code, T data) {
        this.code = code;
        this.data = data;
    }
}
